package com.example.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties("sso")
public class SSOConfig {
    private String jwtSignKey = "";
    private String jwtVerifyKey = "";
    /**
     * 单位second
     */
    private int sessionExpire = 7*24*3600;
    /**
     * 单位hour
     */
    private int appSessionExpire = 128;
    /**
     * 单位second
     */
    private int apiSessionExpire = 3600;
    /**
     * 单位hour
     */
    private int refreshTokenExpire = 120;
    /**
     * 单位hour
     */
    private Integer maxInvalidNums = 5 ;
}
